package com.example.shopp_2301.room

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface FenDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(fen: Fen)

    @Query("select * from fen")
    fun query():MutableList<Fen>//查看全部

    @Query("select * from fen where type = :type")
    fun queryType(type:Int):MutableList<Fen>//查询指定类型

}